package cn.shiwei.basic.constants;

public class UserConstants {

    /**
     * 注册验证码前缀
     */
    public static final String REGISTER_CODE_PREFIX = "register_code_prefix";

    /**
     * 绑定验证码前缀
     */
    public static final String BINDER_CODE_PREFIX = "binder_code_prefix";

    /**
     * 表示用户账号
     */
    public static final Integer USER_TYPE = 1;

    /**
     * 表示管理员账号
     */
    public static final Integer ADMIN_TYPE = 0;

    /**
     * 表示用户账号启用
     */
    public static final Integer USER_STATE_ENABLE= 1;

    /**
     * 表示用户账号禁用
     */
    public static final Integer USER_STATE_DISABLED = 0;

    /**
     * 应用唯一标识
     */
    public static final String APPID = "wxd853562a0548a7d0";

    /**
     * 应用密钥
     */
    public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";

    /**
     * 根据code向微信平台获取token
     */
    public static final String TOKEN_BY_CODE = "https://api.weixin.qq.com/sns/oauth2/access_token?" +
            "appid=APPID" +
            "&secret=SECRET" +
            "&code=CODE" +
            "&grant_type=authorization_code";


    public static final String WX_GET_USER = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
        }
